<template>
	<view class="traveler" :style="{'--color':vuex_config.themeColor1}">
		<view class="ob-title">
			<view class="ti_l">出行人信息</view>
		</view>
		<view class="cell-item" v-for="(item,index) in orderInfo.traveler" :key="index">
			<text>{{item.name}}</text>
			<text>{{item.mobile}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			orderInfo: {
				type: Object,
				default: () => {
					return {};
				}
			},
		}

	}
</script>

<style lang="scss" scoped>
	.traveler view:nth-last-of-type(1){
		border-bottom: none;
	}

	.traveler {
		width: 100%;
		background-color: #fff;
		padding: 0 24rpx;
		margin-top: 20rpx;
		.cell-item{
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #333;
			padding: 20rpx 0;
			border-bottom: 1px solid #eee;
		}
		.ob-title {
			width: 100%;
			display: flex;
			align-items: center;
			padding:20rpx 0  0 20rpx;
			position: relative;
			font-size: 32rpx;
			margin-bottom: 10rpx;

			&::before {
				content: '';
				position: absolute;
				width: 6rpx;
				height: 28rpx;
				background-color: var(--color);
				border-radius: 3rpx;
				top: 30rpx;
				left: 0;
			}

			.ti_l {
				flex: 1;
				overflow: hidden;
			}
		}
	}
</style>
